package com.dmm.search.utils;

public class ThreadLocalUtils {

    private static final ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setUser(Long UserId) {
        threadLocal.set(UserId);
    }

    public static Long getUser() {
        return threadLocal.get();
    }

    public static void removeUser() {
        threadLocal.remove();
    }
}
